package com.xfcy.blog.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xfcy.blog.common.constant.DateConstant;
import com.xfcy.blog.valid.AddGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author 晓风残月Lx
 * @date 2023/4/22 18:20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FeedBackDTO {

    @ApiModelProperty(value = "邮箱")
    @NotBlank(message = "联系邮箱不能为空", groups = {AddGroup.class})
    @Email(message = "邮箱必须是一个合法的邮箱地址" ,groups = {AddGroup.class})
    private String email;

    @ApiModelProperty(value = "需求")
    @NotBlank(message = "需求不能为空" ,groups = {AddGroup.class})
    private String title;

    @ApiModelProperty(value = "详细内容")
    @NotBlank(message = "需求简述不能为空" ,groups = {AddGroup.class})
    private String content;


    //@ApiModelProperty(value = "图片地址")
    //private String imgUrl;

    @ApiModelProperty(value = "反馈类型 1:需求 2：缺陷")
    @NotNull(message = "反馈类型不能为空" ,groups = {AddGroup.class})
    private Integer type;


}
